<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
 <HEAD>
  <TITLE>P代理控制台 </TITLE>
  <META NAME="Author" CONTENT="sghsnmh">
  <META NAME="Email" CONTENT="8094731@gmail.com">
  <META NAME="Website" CONTENT="http://www.meiyear.com">
  <SCRIPT src="/public/jquery-1.11.1.min.js"></SCRIPT>
  <SCRIPT>
  $(document).ready(function(){
	$("input[name=thread_countB]").click(function(){
		$.post('index.php/index/set/',{do:'thread_count','param':$('input[name=thread_count]').val()},function(data,textStatus){
			if(data.status == 'success'){
				$('#thread_count').html(data.param);
			}else if(data.status =='error'){
				alert(data.param);
			}
		});
	});

	$("input[name=vaild_thread_countB]").click(function(){
		$.post('index.php/index/set/',{do:'vaild_thread_count','param':$('input[name=vaild_thread_count]').val()},function(data,textStatus){
			if(data.status == 'success'){
				$('#vaild_thread_count').html(data.param);
			}else if(data.status =='error'){
				alert(data.param);
			}
		});
	});

	$("input[name=proxy_vaild_timeB]").click(function(){
		$.post('index.php/index/set/',{do:'proxy_vaild_time','param':$('input[name=proxy_vaild_time]').val()},function(data,textStatus){
			if(data.status == 'success'){
				$('#proxy_vaild_time').html(data.param);
			}else if(data.status =='error'){
				alert(data.param);
			}
		});
	});
	
	$("input[name=proxy_threadB]").click(function(){
		$.post('index.php/index/set/',{do:'proxy_thread','param':$('#proxy_thread').html()},function(data,textStatus){
			if(data.status == 'success'){
				$('#proxy_thread').html(data.param);
				$('input[name=proxy_threadB]').val(data.param1);
			}
		});
	});

	$("input[name=vaild_proxy_threadB]").click(function(){
		$.post('index.php/index/set/',{do:'vaild_proxy_thread','param':$('#vaild_proxy_thread').html()},function(data,textStatus){
			if(data.status == 'success'){
				$('#vaild_proxy_thread').html(data.param);
				$('input[name=vaild_proxy_threadB]').val(data.param1);
			}
		});
	});

	$("input[name=notvaild_proxy_threadB]").click(function(){
		$.post('index.php/index/set/',{do:'notvaild_proxy_thread','param':$('#notvaild_proxy_thread').html()},function(data,textStatus){
			if(data.status == 'success'){
				$('#notvaild_proxy_thread').html(data.param);
				$('input[name=notvaild_proxy_threadB]').val(data.param1);
			}
		});
	});

	$("input[name=proxy_thread_B]").click(function(){
		$.post('index.php/index/set/',{do:'proxy_thread_','param':$('#proxy_thread_').html()},function(data,textStatus){
			if(data.status == 'success'){
				$('#proxy_thread_').html(data.param);
				$('input[name=proxy_thread_B]').val(data.param1);
			}
		});
	});

	$("input[name=job_threadB]").click(function(){
		$.post('index.php/index/set/',{do:'job_thread','param':$('#job_thread').html()},function(data,textStatus){
			if(data.status == 'success'){
				$('#job_thread').html(data.param);
				$('input[name=job_threadB]').val(data.param1);
			}
		});
	});

	$("input[name=job_thread_B]").click(function(){
		$.post('index.php/index/set/',{do:'job_thread_','param':$('#job_thread_').html()},function(data,textStatus){
			if(data.status == 'success'){
				$('#job_thread_').html(data.param);
				$('input[name=job_thread_B]').val(data.param1);
			}
		});
	});



	$("input[name=proxy_spider_thread_countB]").click(function(){
		$.post('index.php/index/set/',{do:'proxy_spider_thread_count','param':$('input[name=proxy_spider_thread_count]').val()},function(data,textStatus){
			if(data.status == 'success'){
				$('#proxy_spider_thread_count').html(data.param);
			}else if(data.status =='error'){
				alert(data.param);
			}
		});
	});


	$("input[name=proxy_spider_thread_wait_timeB]").click(function(){
		$.post('index.php/index/set/',{do:'proxy_spider_thread_wait_time','param':$('input[name=proxy_spider_thread_wait_time]').val()},function(data,textStatus){
			if(data.status == 'success'){
				$('#proxy_spider_thread_wait_time').html(data.param);
			}else if(data.status =='error'){
				alert(data.param);
			}
		});
	});

  });
  </SCRIPT>
 </HEAD>

 <BODY>
  
<h3>验证工具参数</h3>
<TABLE>
<TR>
	<TD width="200">名称</TD>
	<TD width="80">状态</TD>
	<TD width="100">操作</TD>
</TR>

<TR>
	<TD>检测线程数</TD>
	<TD><span id="thread_count"><?php echo $view_thread['thread_count'];?></span>&nbsp;&nbsp;<span id="proxy_thread"><?php echo $view_thread['proxy_thread']==1?'开启':'关闭';?></span></TD>
	<TD><INPUT name="thread_count" TYPE="text" size='3' value="<?php echo $view_thread['thread_count'];?>"><INPUT name="thread_countB" TYPE="button" VALUE="设置" >
	<?php if($view_thread['proxy_thread']){?><INPUT name="proxy_threadB" TYPE="button" VALUE="关闭"><?php }else{?><INPUT name="proxy_threadB" TYPE="button" VALUE="开启"><?php }?></TD>
</TR>


<TR>
	<TD>存活代理线程数</TD>
	<TD><span id="vaild_thread_count"><?php echo $view_thread['vaild_thread_count'];?></span>&nbsp;&nbsp;<span id="proxy_thread_"><?php echo $view_thread['proxy_thread_']==1?'开启':'关闭';?></span></TD>
	<TD><INPUT name="vaild_thread_count" TYPE="text" size='3' value="<?php echo $view_thread['vaild_thread_count'];?>"><INPUT  name="vaild_thread_countB" TYPE="button" VALUE="设置" >
	<?php if($view_thread['proxy_thread_']){?><INPUT name="proxy_thread_B" TYPE="button" VALUE="关闭"><?php }else{?><INPUT name="proxy_thread_B" TYPE="button" VALUE="开启"><?php }?></TD>
</TR>





<TR>
	<TD>活代理验证周期</TD>
	<TD><span id="proxy_vaild_time"><?php echo $view_thread['proxy_vaild_time'];?></span>&nbsp;&nbsp;<span id="job_thread_"><?php echo $view_thread['job_thread_']==1?'开启':'关闭';?></span></TD>
	<TD><INPUT name="proxy_vaild_time" TYPE="text" size='3' value="<?php echo $view_thread['proxy_vaild_time'];?>"><INPUT  name="proxy_vaild_timeB" TYPE="button" VALUE="设置" >
	<?php if($view_thread['job_thread_']){?><INPUT name="job_thread_B" TYPE="button" VALUE="关闭"><?php }else{?><INPUT name="job_thread_B" TYPE="button" VALUE="开启"><?php }?></TD>
</TR>

													  
<TR>
	<TD>有效代理处理进程状态</TD>
	<TD><p id="vaild_proxy_thread"><?php echo $view_thread['vaild_proxy_thread']==1?'开启':'关闭';?></p></TD>
	<TD><?php if($view_thread['vaild_proxy_thread']){?><INPUT name="vaild_proxy_threadB" TYPE="button" VALUE="关闭"><?php }else{?><INPUT name="vaild_proxy_threadB" TYPE="button" VALUE="开启"><?php }?></TD>
</TR>
<TR>
	<TD>无效代理处理进程状态</TD>
	<TD><p id="notvaild_proxy_thread"><?php echo $view_thread['notvaild_proxy_thread']==1?'开启':'关闭';?></p></TD>
	<TD><?php if($view_thread['notvaild_proxy_thread']){?><INPUT name="notvaild_proxy_threadB" TYPE="button" VALUE="关闭"><?php }else{?><INPUT name="notvaild_proxy_threadB" TYPE="button" VALUE="开启"><?php }?></TD>
</TR>

<TR>
	<TD>工作状态</TD>
	<TD><p id="job_thread"><?php echo $view_thread['job_thread']==1?'开启':'关闭';?></p></TD>
	<TD><?php if($view_thread['job_thread']){?><INPUT name="job_threadB" TYPE="button" VALUE="关闭"><?php }else{?><INPUT name="job_threadB" TYPE="button" VALUE="开启"><?php }?></TD>
</TR>
</TABLE>

<br><br><br><br>
<h3>吸附工具参数</h3>
<TABLE>
<TR>
	<TD width="200">名称</TD>
	<TD width="80">状态</TD>
	<TD width="100">操作</TD>
</TR>

<TR>
	<TD>爬虫抓取的线程数</TD>
	<TD><span id="proxy_spider_thread_count"><?php echo $view_thread['proxy_spider_thread_count'];?></span>&nbsp;&nbsp;</TD>
	<TD><INPUT name="proxy_spider_thread_count" TYPE="text" size='3' value="<?php echo $view_thread['proxy_spider_thread_count'];?>"><INPUT name="proxy_spider_thread_countB" TYPE="button" VALUE="设置" >
	</TD>
</TR>


<TR>
	<TD>爬虫抓取的间隔时间</TD>
	<TD><span id="proxy_spider_thread_wait_time"><?php echo $view_thread['proxy_spider_thread_wait_time'];?></span>&nbsp;&nbsp;</TD>
	<TD><INPUT name="proxy_spider_thread_wait_time" TYPE="text" size='3' value="<?php echo $view_thread['proxy_spider_thread_wait_time'];?>"><INPUT  name="proxy_spider_thread_wait_timeB" TYPE="button" VALUE="设置" >
	</TD>
</TR>


</TABLE>

<TABLE style="top:5px;float:right;">
<TR>
	<TD>有效代理数</TD>
	<TD><?php echo $view_thread['proxy_vaild'];?></TD>
</TR>
<TR>
	<TD>无效代理数</TD>
	<TD><?php echo $view_thread['proxy_notvaild'];?></TD>
</TR>
</TABLE>

 </BODY>
</HTML>
